package com.wn.pettyloan.service.impl;

import com.wn.pettyloan.dto.ProductAndDocumnetTypeDto;
import com.wn.pettyloan.entity.ProductAndDocumnetType;
import com.wn.pettyloan.mapper.ProductAndDocumnetTypeMapper;
import com.wn.pettyloan.service.ProductAndDocumnetTypeService;
import com.wn.pettyloan.util.Result;
import com.wn.pettyloan.vo.productAndDocumnetTypeVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: pettyloan
 * @ClassName ProductAndDocumnetTypeServiceImpl
 * @description:
 * @author: 国雨浓
 * @create: 2022-12-12 14:10
 **/
@Service
public class ProductAndDocumnetTypeServiceImpl implements ProductAndDocumnetTypeService {
@Resource
private ProductAndDocumnetTypeMapper productAndDocumnetTypeMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return productAndDocumnetTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(ProductAndDocumnetType record) {
        return productAndDocumnetTypeMapper.insertSelective(record);
    }

    @Override
    public ProductAndDocumnetType selectByPrimaryKey(Long id) {
        return productAndDocumnetTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductAndDocumnetType record) {
        return productAndDocumnetTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<ProductAndDocumnetType> selectAll() {
        return productAndDocumnetTypeMapper.selectAll();
    }


    @Override
    public int addlist(ProductAndDocumnetTypeDto productAndDocumnetTypeDto) {
        return productAndDocumnetTypeMapper.addlist(productAndDocumnetTypeDto);
    }

}
